{template header}
<ul id="myTab" class="nav nav-tabs">
    <li class="active">
        <a href="#userInfo" data-toggle="tab">
            基本信息
        </a>
    </li>
    <li><a href="#medal" data-toggle="tab">勋章信息</a></li>

    <li><a target="_blank" href="index.php?c=admin&a=allRunData&t=1&uid={$user['uid']}">跑步数据</a></li>
    <li><a target="_blank" href="index.php?c=admin&a=postList&boardId=showtime&uid={$user['uid']}">帖子列表</a></li>
</ul>
<!--用户基本信息 start-->
<div id="myTabContent" class="tab-content">
    <div class="tab-pane fade in active" id="userInfo">
        <form>
            <fieldset>
                <p><span>头像：</span><img src="{$user['header']}"></p>
                <p><span>昵称：</span><input type="text" value="{$user['nickname']}"></p>
                <p><span>身高：</span><input type="text" value="{$user['height']}"> CM</p>
                <p><span>体重：</span><input type="text" value="{$user['weight']}"> KG</p>
                <p><span>年龄：</span><input type="text" value="{eval echo $user['age'] > 100 ? (date("Y") - $user['age']):$user['age']}">岁</p>
                <p><label>性别：</label><label class="checkbox">
                    <label class="radio">
                        <input type="radio" name="gender" value="1" {if $user['gender'] == 1}checked{/if}>
                        男
                    </label>
                    <label class="radio">
                        <input type="radio" name="gender"  value="2" {if $user['gender'] == 2}checked{/if}>
                        女
                    </label>
                </p>
                <p>
		<span>帐号绑定：<span>
		<img src="static/bootstrap/img/cms/icon_weibo{if $user['sina'] == 0}_1{/if}.png" width="30" height="30"> &nbsp;&nbsp;
		<img src="static/bootstrap/img/cms/icon_qq{if $user['qq'] == 0}_1{/if}.png" width="30" height="30">
		&nbsp;&nbsp;
		<img src="static/bootstrap/img/cms/icon_weixin{if $user['weixin'] == 0}_1{/if}.png" width="30" height="30">
		&nbsp;&nbsp;
		<img src="static/bootstrap/img/cms/icon_renren{if $user['renren'] == 0}_1{/if}.png" width="30" height="30">
            &nbsp;&nbsp;
		<img src="static/bootstrap/img/cms/icon_phone{if $user['phone'] == 0}_1{/if}.png" width="30" height="30">
                </p>
                <p><span>累计里程：</span><input type="text" value="{$user['total_mileage']}"></p>
                <p><span>累计时长：</span><input type="text" value="{$user['total_elapsedtime']}"></p>
                <p><span>累计消耗卡路里：</span><input type="text" value="{$user['total_calorie']}"></p>
                <p><span>累计跑步次数：</span><input type="text" value="{$user['total_rate']}"></p>
                <p><span>最大跑步距离：</span><input type="text" value="{$user['max_mileage']}"></p>
                <p><span>最大跑步时长：</span><input type="text" value="{$user['max_elapsedtime']}"></p>
                <p><span>注册时间：</span> {eval echo date('Y-m-d H:i:s',$user['addtime'])}</p>
                <a class="btn btn-danger" href="?c=admin&a=delUser&uid=$user['uid']" target="_blank" onclick="return confirm('Are you sure?')">删除用户</a>
                <!--<button type="submit" class="btn">Submit</button>-->
            </fieldset>
        </form>
    </div>
    <!--用户基本信息 end-->


    <!--用户胸章信息 start-->
    <div class="tab-pane fade" id="medal">
        <div class="bs-docs-example" style="clear:both;">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>头像</th>
                    <th>昵称</th>
                    <th>勋章名</th>
                    <th>勋章</th>
                    <th>自定义勋章</th>
                    <th>添加时间</th>
                </tr>
                </thead>
                <tbody>
                {loop $medalList $k $v}
                <tr>
                    <td><img width="75" src="{$v['header']}" /></td>
                    <td>{$v['nickname']}</td>
                    <td>{$v['medal_name']}</td>
                    <td><img width="100" src="{$v['medal_img']}" /></td>
                    <td><img src="static/bootstrap/img/cms/icon_{if $v['isCustom'] == 1}right{else}wrong{/if}.jpg" width="30" height="30"></td>
                    <td>{eval echo date('Y-m-d H:i:s', $v['add_time'])}</td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
    </div>
    <!--用户胸章信息 end-->

</div>



{template footer}
